package com.example.java.Mapper;

import com.example.java.Entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ImgMapper {
    @Select("select avatar from `user`")
    List<String> getBase ();

    @Insert("insert into user (avatar) values (#{avatar}) where id = #{id}")
    String setBase(String avatar,Integer id);

}
